<%@ page language="java" import="java.util.*" pageEncoding="ISO-8859-1"%>
<%@ page import="com.ecable.bean.ProfileTO;"%>
<%@ page errorPage="UserExceptionHandler.jsp"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<%
	String path;
	String usertype;
	String s;
	Vector c;
%>

<head>
	<script language="JavaScript"
		src="<%=request.getContextPath()
					+ "/scripts/gen_validatorv31.js"%>"
		type="text/javascript"></script>
</head>
<body>
	&nbsp;
	<jsp:include page="Header.jsp"></jsp:include>
	<br />
	<center>
		<h1>
			Requested 
			<%=request.getAttribute("usertype")%> 
			Details
		</h1>
	</center>
	<center>
		<form name='deleteuser' action='./DeleteOperatorAction'>
			<table border='1'>
				<tr bgcolor='#12345'>
					<td>
						&nbsp
					</td>

					<td align='center'>
						<b>Sno</b>
					</td>
					<td align='center'>
						<b>Name </b>
					</td>
					<td align='center'>
						<b>Date Of Registration</b>
					</td>
					<td align='center'>
						<b>Contact </b>
					</td>
					<td align='center'>
						<b>Address </b>
					</td>
					<td align='center'>
						<b>status</b>
					</td>

					<%
						c = (Vector) request.getAttribute("opinfo");
						Iterator it = c.listIterator();
						int count = 1;
						while (it.hasNext()) {
							System.out.println(count);
							ProfileTO pro = (ProfileTO) it.next();
					%>

				</tr>


				<tr>
					<td>
						<input name="ch" type="checkbox" id="checkbox2" onClick="check1()"
							value="<%=pro.getUserid()%>" />
					</td>
					<td>
						<b><%=count++%></b>
					</td>
					<td>
						<b><%=pro.getFirstName()%></b>
					</td>
					<td>
						<b><%=pro.getDate()%></b>
					</td>
					<td>
						<b>mail :<%=pro.getEmail()%></b>
						<br>
						<b>Ph :<%=pro.getPhone()%></b>
						<br>
						<b>Fax :<%=pro.getFax()%></b>
					</td>
					<td>

						<b><%=pro.getCity()%>,<%=pro.getDistrict()%>(District)</b>
						<br>
						<b><%=pro.getState()%></b>
						<br>
					</td>
					<td>
						<b><a
							href="./UpdateOperatorStatusAction?userid=<%=pro.getUserid()%>"><%=pro.getStatus()%></a>
						</b>
					</td>
					<%
						}
					%>
				
				<tr>
					<td align='center' colspan='8'>
						<input type="submit" value="Delete" />
					</td>
				</tr>
			</table>
		</form>
	</center>
	<jsp:include page="/Footer.jsp"></jsp:include>
</body>
